package com.me.libgdx_test;

public class ClassPlayerPickupStructureMod {
	//Modifiers for pickup/structure frequency
	//Pickup frequency: +33% items on map, spell frequency
	//Structure frequency: +2 stores, +6 stores, No altars

	//Modifiers for when structures are used
	//Altar piety: double gain
	//Structure modifier: 50% discount shops, stores free
	int store_count_increase;
	int altar_count_increase;
	int enemy_frequency_increase;
	float pickup_increase;
	int spell_count_increase;
	float store_discount;
	float altar_discount;
	ClassPlayerPickupStructureMod(int store_count_increase, int altar_count_increase, float pickup_increase, 
			int spell_count_increase, float store_discount, float altar_discount, int enemy_frequency_increase){
		this.store_count_increase = store_count_increase;
		this.altar_count_increase = altar_count_increase;
		this.pickup_increase = pickup_increase;
		this.spell_count_increase = spell_count_increase;
		this.store_discount = store_discount;
		this.altar_discount = altar_discount;
		this.enemy_frequency_increase = enemy_frequency_increase;
	}
	public void set_item_frequency_discount(ClassPlaceObjects map_objects){
		map_objects.enemy_frequency += enemy_frequency_increase;
		map_objects.shop_frequency += store_count_increase;
		map_objects.altar_frequency += altar_count_increase;
		map_objects.pickup_frequency += map_objects.pickup_frequency * pickup_increase;
		map_objects.spell_frequency += spell_count_increase;
		map_objects.set_shop_discount(store_discount);
		map_objects.altar_discount = altar_discount;
	}
}
